import pack1.model.Cat;

import java.util.HashMap;
import java.util.Hashtable;

public class Demo1 extends Cat {


    public Demo1(int age, String name) {
        super(age, name);
    }

    public static void main(String[] args) throws CloneNotSupportedException {
//        Object o=new Object();
//        int i = o.hashCode();
//        System.out.println(i);
//        String str=new String(new char[]{'w','a'});
//        Cat cat=new Cat(10,"花花");

//        Cat clone = .clone();
//        System.out.println(clone);
//        int min = Math.min(4, 4);
//        System.out.println(min);

        int[][]dp=new int[5][4];
        System.out.println(dp.length);
        System.out.println(dp[0].length);

    }

    public void test() throws CloneNotSupportedException {
        Object o=new Object();
        int i = o.hashCode();
        System.out.println(i);
        String str=new String(new char[]{'w','a'});
        Cat cat=new Cat(10,"花花");

        Hashtable<Integer,Integer>map=new Hashtable<>();


        Cat clone = super.clone();
        System.out.println(clone);
    }

    public int minCostClimbingStairs(int[] cost) {
        if(cost.length==1||cost.length==2)return 0;
        //定义dp数组
        int[] dp=new int[cost.length+1];
        //初始化dp数组
        dp[0]=0;
        dp[1]=0;
        for(int i=2;i<cost.length;++i){
            dp[i]=dp[i-1]+cost[i-1];
        }
        return dp[cost.length-1];
    }
}
